package demo1;

public class test1 {


    public static void main(String[] args) {
        int x=1;
        Integer x1_integer = x;

        int y = x1_integer;
        System.out.println(x);
        System.out.println(x1_integer);
        System.out.println(y);
    }
    public static void main1(String[] args) {
        int x=10;
        //装箱操作
        Integer x1_integer = x;
        Integer x2_integer = Integer.valueOf(x);
        //拆箱操作
        int x1 = x1_integer.intValue();

        System.out.println(x);
        System.out.println(x1_integer);
        System.out.println(x2_integer);
        System.out.println(x1);
    }
}
